if( SERVER ) then
	AddCSLuaFile( "shared.lua" );
end

if( CLIENT ) then
	SWEP.PrintName = "GM Arena Base Wep"
	SWEP.Slot = 0
	SWEP.SlotPos = 0
	SWEP.DrawAmmo = false
	SWEP.DrawCrosshair = false
end

SWEP.Author			= "slay3r36"
SWEP.Instructions	= ""
SWEP.Contact		= ""
SWEP.Purpose		= ""

SWEP.ViewModelFOV	= 62
SWEP.ViewModelFlip	= false

SWEP.Spawnable		= false
SWEP.AdminSpawnable = true

if SERVER then

	function SWEP:SendHoldType(holdtype)
		self:SetWeaponHoldType(holdtype)
		umsg.Start("SetHoldType")
			umsg.Entity(self)
			umsg.String(holdtype)
		umsg.End()
	end
	
elseif CLIENT then

	local function GetWeaponHoldType(um)
		local weapon = um:ReadEntity()
		if ValidEntity(weapon) and weapon.SetWeaponHoldType then
			weapon:SetWeaponHoldType(um:ReadString())
		end
	end
	usermessage.Hook("SetHoldType", GetWeaponHoldType)
	
end
function SWEP:Initialize()
	if SERVER  then
		self:SendHoldType( "normal" );
	end
end

function SWEP:Precache()
end

function SWEP:Deploy()
	if SERVER  then
		self:SendHoldType( "normal" );
	end
	return true
end